package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) FileCategoryTree(ctx context.Context, req *system.FileCategoryTreeReq) (res *system.FileCategoryTreeRes, err error) {
	res = new(system.FileCategoryTreeRes)
	res.Data, err = service.File().GetAttachmentCategoryTree(ctx)
	return
}
